#ifndef AVPACKETQUEUE_H
#define AVPACKETQUEUE_H

#include <QDebug>

extern "C" {
#include "libavcodec/avcodec.h"
}
#include "queue.h"

class AVPacketQueue
{
public:
    AVPacketQueue();
    ~AVPacketQueue();

    void Abort();
    void Release();
    int Size();
    int Push(AVPacket *val);
    AVPacket *Pop(const int timeout);

private:
    Queue<AVPacket*> queue_;

};

#endif // AVPACKETQUEUE_H
